projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef8e50b
)
(name-last-kbd-macro): Reject empty cmd name.
author
Richard M. Stallman
<rms@gnu.org>
Sun, 28 Jan 1996 03:07:38 +0000
(
03:07
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sun, 28 Jan 1996 03:07:38 +0000
(
03:07
+0000)
lisp/macros.el
patch
|
blob
|
history
diff --git
a/lisp/macros.el
b/lisp/macros.el
index 5bf6560e5e657fec3705260828997156f9cd64f5..fc79959e9f98a9e690fa3619f205e60627f79d23 100644
(file)
--- a/
lisp/macros.el
+++ b/
lisp/macros.el
@@
-45,6
+45,8
@@
Such a \"function\" cannot be called from Lisp, but it is a valid editor command
(not (vectorp (symbol-function symbol)))
(error "Function %s is already defined and not a keyboard macro."
symbol))
+ (if (string-equal symbol "")
+ (error "No command name given"))
(fset symbol last-kbd-macro))
;;;###autoload